package com.atguigu.javaee.IIOC;

public class Botton {
    private Tire tire;
    public Botton(Tire tire){
        this.tire=tire;
    }
    public void init(){
        //依赖轮胎
        System.out.println("执行button");
        tire.init();
    }
}
